package com.hmall.common;

import com.hmall.common.pojo.Address;
import com.hmall.common.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface FeignClientMy {
    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") long id);

    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);


}
